-ifndef(D).
-define(D(X), io:format("DEBUG ~p:~p ~p~n",[?MODULE, ?LINE, X])).
-endif.
-ifndef(CRLF).
-define(CRLF,[13,10]).
-endif.
-define(MAX_RESTART, 5).
-define(MAX_TIME, 60).
-define(DEF_PORT, 80).

-record(ews_sites,{
	server_name = [],
	addr        = [],
	port        = [],
	ip_comm     = [],
	pid         = [],
	options     = []
	}).


-record(ews,{
	listen = [],
	accept = [],
	module = [],
	port = [],
	pid = [],
	sites = []
	}).

